if (!global._babelPolyfill) {
	require('babel-polyfill');
}
// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
import i18n from './locales'
import { VueAxios } from './utils/request'
import ProLayout, { PageHeaderWrapper } from '@ant-design-vue/pro-layout'
import themePluginConfig from '../config/themePluginConfig'
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
import moment from 'moment'
Vue.prototype.moment = moment
/**
 * bin-code-editor
 */
import CodeEditor from 'bin-code-editor'
import '../node_modules/bin-code-editor/lib/styles/index.css'
Vue.use(CodeEditor);

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import {Cascader} from "ant-design-vue";

/**
 * vue-json-viewer
 */
import JsonViewer from 'vue-json-viewer'
Vue.use(JsonViewer)

import { Tree } from 'ant-design-vue'
import { TreeSelect } from 'ant-design-vue'
import { FormModel } from 'ant-design-vue'
import { Transfer } from 'ant-design-vue'
import { Collapse } from 'ant-design-vue'
Vue.use(FormModel)
Vue.use(Collapse)
Vue.use(TreeSelect)
Vue.use(Cascader)
Vue.component(Tree.name, Tree)
Vue.component(Transfer.name, Transfer)

import VueClipboard from "vue-clipboard2";
Vue.use(VueClipboard)

import { Table } from 'view-design';
import { Page} from "view-design";

Vue.component('Table', Table);
Vue.component('Page', Page)
// mock
// WARNING: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.
import './mock'

import bootstrap from './core/bootstrap'
import './core/lazy_use' // use lazy load components
import './permission' // permission control
import './utils/filter' // global filter
import './global.less' // global style

Vue.config.productionTip = false

// mount axios to `Vue.$http` and `this.$http`
Vue.use(VueAxios)
// use pro-layout components
Vue.component('pro-layout', ProLayout)
Vue.component('page-container', PageHeaderWrapper)
Vue.component('page-header-wrapper', PageHeaderWrapper)

window.umi_plugin_ant_themeVar = themePluginConfig.theme

new Vue({
  router,
  store,
  i18n,
  // init localstorage, vuex, Logo message
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')
